<%= error_messages_for 'user'%>
 <fieldset>
   <legend>修改密码</legend>
   <% form_tag (:action=>:update_password) do |form|%>
     <p>
       <label for="old_password">密码：</label>
       <%= password_field_tag('old_password','')%>
     </p>
     <p>
       <label for="password" >新密码:</label>
       <%= password_field_tag('new_password','') %>
     </p>
     <p>
       <label for="password_confirm" >新密码确认:</label>
       <%=password_field_tag('password_confirm','') %>
     </p>
     <%=submit_tag "修改密码"%>
   <% end%>
 </fieldset>
